<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>My Project: InPerUsr.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_in_per_usr_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">InPerUsr.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface do Modulo Percistencia <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a>.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_in_vet_bit_8h_source.html">InVetBit.h</a>&quot;</code><br/>
</div>
<p><a href="_in_per_usr_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structusuario___m.html">usuario_M</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis.  <a href="structusuario___m.html#details">More...</a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a8522d791e5e798bc57c76845e4c4a48c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8522d791e5e798bc57c76845e4c4a48c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ExtPU</b>&#160;&#160;&#160;extern</td></tr>
<tr class="memitem:a1ee682f25327f9a45ef93d756bc14ba1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#a1ee682f25327f9a45ef93d756bc14ba1">ARQUIVO_PU</a>&#160;&#160;&#160;&quot;Usuario.txt&quot;</td></tr>
<tr class="memdesc:a1ee682f25327f9a45ef93d756bc14ba1"><td class="mdescLeft">&#160;</td><td class="mdescRight">O nome do arquivo do Banco de dados usuario Arquivo : o Arquivo sera um arquivo de resgistros de tamanho fixo que tera as sequintes caracteristicas:<br/>
 |campo 1= 11 digitos|campo 2= 15 digitos|campo 3= 4 digitos|campo 4= 1 digito|campo 5= 1 digito|campo 6= 1 digito<br/>
.  <a href="#a1ee682f25327f9a45ef93d756bc14ba1"></a><br/></td></tr>
<tr class="memitem:ab73bcb0bc5f1da4e0731a4e4c3a2d311"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab73bcb0bc5f1da4e0731a4e4c3a2d311"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#ab73bcb0bc5f1da4e0731a4e4c3a2d311">NARQUIVO_PU</a>&#160;&#160;&#160;&quot;Usuario&quot;</td></tr>
<tr class="memdesc:ab73bcb0bc5f1da4e0731a4e4c3a2d311"><td class="mdescLeft">&#160;</td><td class="mdescRight">A type definition for a . <br/></td></tr>
<tr class="memitem:a678a420e98ca2474f5abb6c3d80d52f4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a678a420e98ca2474f5abb6c3d80d52f4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#a678a420e98ca2474f5abb6c3d80d52f4">TAMANHOREG_PU</a>&#160;&#160;&#160;38</td></tr>
<tr class="memdesc:a678a420e98ca2474f5abb6c3d80d52f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">A type definition for a . <br/></td></tr>
<tr class="memitem:a55318c48974a330b464789a4fe74e37f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a55318c48974a330b464789a4fe74e37f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#a55318c48974a330b464789a4fe74e37f">VARIAVELCONTROLE_PU</a>&#160;&#160;&#160;'$'</td></tr>
<tr class="memdesc:a55318c48974a330b464789a4fe74e37f"><td class="mdescLeft">&#160;</td><td class="mdescRight">A type definition for a . <br/></td></tr>
<tr class="memitem:a0f5a80d3732df4a03632c0936ff8f863"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f5a80d3732df4a03632c0936ff8f863"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#a0f5a80d3732df4a03632c0936ff8f863">EXTENCAO_PU</a>&#160;&#160;&#160;&quot;.txt&quot;</td></tr>
<tr class="memdesc:a0f5a80d3732df4a03632c0936ff8f863"><td class="mdescLeft">&#160;</td><td class="mdescRight">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;. <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a3ac80642d5c5120ed9fc05218c40a525"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ac80642d5c5120ed9fc05218c40a525"></a>
typedef struct <a class="el" href="structusuario___m.html">usuario_M</a>&#160;</td><td class="memItemRight" valign="bottom"><b>User_PU</b></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6279672a97a71c11e9ea49d902a0bb8f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6279672a97a71c11e9ea49d902a0bb8f"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>VerificaSenha_PU</b> (const char *, const char *)</td></tr>
<tr class="memitem:ad0e9121836b63ee3bd0f2dba08962386"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0e9121836b63ee3bd0f2dba08962386"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>BloqueiaUsuario_PU</b> (const char *cpf_Pass)</td></tr>
<tr class="memitem:a71b65683d76bc5298d8dd7fdc81d4273"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71b65683d76bc5298d8dd7fdc81d4273"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>LiberaUsuario_PU</b> (const char *)</td></tr>
<tr class="memitem:ad9b7adeac061ab0acd9e6df7c50cb5bb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9b7adeac061ab0acd9e6df7c50cb5bb"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>PegaUser_PU</b> (const char *, <a class="el" href="structusuario___m.html">User_PU</a> *)</td></tr>
<tr class="memitem:a4535e1dccb0a095616874e0fd379be1b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4535e1dccb0a095616874e0fd379be1b"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>AtualizaUser_PU</b> (<a class="el" href="structusuario___m.html">User_PU</a> *)</td></tr>
<tr class="memitem:a6259c0fa0265814dd4e8f1c67a0db305"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6259c0fa0265814dd4e8f1c67a0db305"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>DeletaUser_PU</b> (const char *)</td></tr>
<tr class="memitem:a1fae42653f0050ff1b21e039bda06593"><td class="memItemLeft" align="right" valign="top">ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#a1fae42653f0050ff1b21e039bda06593">AddUsuario_PU</a> (<a class="el" href="structusuario___m.html">User_PU</a> *)</td></tr>
<tr class="memdesc:a1fae42653f0050ff1b21e039bda06593"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por adionar um novo usuario ao Banco de Dados.  <a href="#a1fae42653f0050ff1b21e039bda06593"></a><br/></td></tr>
<tr class="memitem:a11eccfc9c9a47ced12a3564058a8a405"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11eccfc9c9a47ced12a3564058a8a405"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>AddAlbum_PU</b> (const char *)</td></tr>
<tr class="memitem:a1e94119df882275fa36eee54fb3f3103"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e94119df882275fa36eee54fb3f3103"></a>
ExtPU int&#160;</td><td class="memItemRight" valign="bottom"><b>RemoveAlbum_PU</b> (const char *)</td></tr>
<tr class="memitem:a224b9522e245590567f12278628157b3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a224b9522e245590567f12278628157b3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>ListaBloqueados_PU</b> (<a class="el" href="structusuario___m.html">User_PU</a> *Usuar, int Pulo)</td></tr>
<tr class="memitem:a9bbf42e8d3b10472049564f935e1acff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_in_per_usr_8h.html#a9bbf42e8d3b10472049564f935e1acff">VerificaNumeroAlbuns_PU</a> (const char *CpfPass)</td></tr>
<tr class="memdesc:a9bbf42e8d3b10472049564f935e1acff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por pegar usuario dado a cpf deste.  <a href="#a9bbf42e8d3b10472049564f935e1acff"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Interface do Modulo Percistencia <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a>. </p>
</div><hr/><h2>Macro Definition Documentation</h2>
<a class="anchor" id="a1ee682f25327f9a45ef93d756bc14ba1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ARQUIVO_PU&#160;&#160;&#160;&quot;Usuario.txt&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>O nome do arquivo do Banco de dados usuario Arquivo : o Arquivo sera um arquivo de resgistros de tamanho fixo que tera as sequintes caracteristicas:<br/>
 |campo 1= 11 digitos|campo 2= 15 digitos|campo 3= 4 digitos|campo 4= 1 digito|campo 5= 1 digito|campo 6= 1 digito<br/>
. </p>
<p>campo 1= chave primeria cpf.<br/>
 campo 2= chave secundaria nome. <br/>
 campo 3= senha.<br/>
 campo 4= numero de tentativas erradas.<br/>
 campo 5= numero de albums do usuario.<br/>
 campo 6= <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a> Bloqueado. Details. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a1fae42653f0050ff1b21e039bda06593"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ExtPF int AddUsuario_PU </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structusuario___m.html">User_PU</a> *&#160;</td>
          <td class="paramname"><em>NovoUsuar</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por adionar um novo usuario ao Banco de Dados. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">NovoUsuar</td><td>: uma struct que tem os dados do novo usuario. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um int que funciona com "bool":<br/>
 0 = Sucesso.<br/>
 -1 = Erro de Arquivo.<br/>
 -2 = <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a> ja existe.<br/>
 OT = Erro Vetor de Bits.<br/>
 </dd></dl>

</div>
</div>
<a class="anchor" id="a9bbf42e8d3b10472049564f935e1acff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int VerificaNumeroAlbuns_PU </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CpfPass</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por pegar usuario dado a cpf deste. </p>
<p>int VerificaNumeroAlbuns_PU (const char* CpfPass) </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">cpf_Pass</td><td>O cpf do usuario cujo o valor de albuns deve ser verificado. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um int que vem com o numero de albums ja incrementado:<br/>
 PO = Numero de albuns verificado.<br/>
 -1 = Erro de Arquivo.<br/>
 -2 = <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a> nao encontrado.<br/>
 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_in_per_usr_8h.html">InPerUsr.h</a></li>
    <li class="footer">Generated on Wed Jul 4 2012 11:44:30 for My Project by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>
